
interface LayerList {
  layerLists: Object,
  selectLayer: Object
}
const menu: any = {
  state: {
    //头部可编辑图层
    layerLists: [
      { name: "点", value: "点" },
      { name: "面", value: "面" },
      { name: "线", value: "线" }
    ],
    // 选择图层
    selectLayer: {}
  },
  mutations: {
    //头部可编辑图层
    changeEditList(state: LayerList, data: []) {
      state.layerLists = data;
    },
    // 图层切换
    changLayer(state: LayerList, data: Object) {
      state.selectLayer = data;
    }
  },
};

export default menu;
